/**
 * @filename:Trade 2019年9月24日
 * @project BuyBit  V1.0
 * Copyright(c) 2020 BianPeng Co. Ltd. 
 * All right reserved. 
 */
package com.service.match.common.entity;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * -自动生成工具：mybatis-dsc-generator
 * -说明： 交易记录实体类
 * @version: V1.0
 * @author: BianPeng
 * 
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SpotTradeVo implements Serializable {

	private static final long serialVersionUID = 10001L;

	//@ApiModelProperty(name = "uid", value = "用户ID")
	private Integer buyOrderId;

	private Integer buyMemberId;

	//@ApiModelProperty(name = "oid", value = "订单ID")
	private Integer sellOrderId;

	private Integer sellMemberId;

	//@ApiModelProperty(name = "number", value = "交易数量")
	private BigDecimal tradeNum;

	//@ApiModelProperty(name = "price", value = "实际成交价")
	private BigDecimal orderPrice;

	//@ApiModelProperty(name = "totalPrice", value = "成交总价")
	private BigDecimal totalMoney;

	//@ApiModelProperty(name = "coinTeam", value = "交易队")
	private String symbol;

	private Integer tradeType;

	private Integer priceType;

	private Date createTime;

	public String toJsonString() {
		return JSON.toJSONString(this);
	}
}
